package com.hx.learn.spring.boot.stater.properties;

import com.hx.learn.spring.boot.stater.model.Home;
import com.hx.learn.spring.boot.stater.model.Person;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 描述：配置类
 *
 * @author Minghua Chen
 * @date 2020-10-18 09:35
 */
@ConfigurationProperties(prefix = "spring.info")
public class PersonalProperties {
    private Person person;
    private Home home;

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }

    public Home getHome() {
        return home;
    }

    public void setHome(Home home) {
        this.home = home;
    }
}
